﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QLBanVe
{
    public partial class MidParent : Form
    {
        public MidParent()
        {
            InitializeComponent();
        }

        private void nhậnLịchChuyếnBayToolStripMenuItem_Click(object sender, EventArgs e)
        {
            pnHienThi.Controls.Clear();
            frmNhanLichChuyenBay fr = new frmNhanLichChuyenBay();
            pnHienThi.Controls.Add(fr);
            fr.Dock = DockStyle.Fill;
           
            
        }

        private void homeToolStripMenuItem_Click(object sender, EventArgs e)
        {
           
            ucHuyDatCho frm = new ucHuyDatCho();
            pnHienThi.Controls.Clear();
            pnHienThi.Controls.Add(frm);
            frm.Dock = DockStyle.Fill;
        }

        private void MidParent_Load(object sender, EventArgs e)
        {
            ucHome frm = new ucHome();
            pnHienThi.Controls.Clear();
            pnHienThi.Controls.Add(frm);
            frm.Dock = DockStyle.Fill;
        }

        private void ghiNhậnĐặtVéToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmPhieuDatCho frm = new frmPhieuDatCho();
            pnHienThi.Controls.Clear();
            pnHienThi.Controls.Add(frm);
            frm.Dock = DockStyle.Fill;
        }

        private void bánVéChuyếnBayToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmVeChuyenBay frm = new frmVeChuyenBay();
            pnHienThi.Controls.Clear();
            pnHienThi.Controls.Add(frm);
            frm.Dock = DockStyle.Fill;
        }

        private void traCứuChuyếnBayToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmTraCuuChuyenBay frm = new frmTraCuuChuyenBay();
            pnHienThi.Controls.Clear();
            pnHienThi.Controls.Add(frm);
            frm.Dock = DockStyle.Fill;
        }

        private void báoCáoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmThemTuyenBay frm = new frmThemTuyenBay();
            frm.Show();
        }

        private void báoCáoToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmAddSanBay frm = new frmAddSanBay();
            frm.Show();
        }

        private void homeToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            
            MidParent_Load(sender, e);
        }
    }
}
